cmake_minimum_required(VERSION 3.4.1)

#project(${TARGETS})

# 如果想要生成的可执行文件拥有符号表，可以gdb调试，就直接加上这句
add_definitions("-Wall -g")

#FILE(GLOB SRC_LIST "${PROJECT_SOURCE_DIR}/digimon/*.c")
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/inc)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

ADD_LIBRARY(digimon SHARED digimon.c digimon_ui.c digimon_libs.c bmp.c)
TARGET_LINK_LIBRARIES(digimon m pthread)
